﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Articles = System.Collections.Generic.IEnumerable<Api.Model.Article>;
using Core.ProxyService;

namespace Core.ProxyService
{
    public abstract class NotPaginatedProxyService : ICoreProxyService
    {
        public bool IsPaginationSupported
        {
            get { return false; }
        }

        public void GetPaginatedArticlesAsync(int page, int count, Action<ArticlesDownloadedEventArgs> callback)
        {
            throw new NotSupportedException();
        }

        public virtual void GetArticlesAsync(Action<ArticlesDownloadedEventArgs> callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException("callback");
            }
        }
    }
}
